package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author DoGH
 * @email sunlightcs@gmail.com
 * @date 2023-10-25 10:37:42
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    /**
     * 获取可检索的属性ID
     *
     * @param attrIds 属性ID集合
     * @return {@link List }<{@link Long }>
     * @author DuGuanghan
     * @since 2024-04-18 16:32:13
     */
    List<Long> selectAttrBySearch(@Param("attrIds") List<Long> attrIds);
}
